
<!DOCTYPE html>
<html>  
<head>
    <include file="Public/title" />
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <include file="Public/head"/>
    <script>
        function check(){
            var password = document.getElementById("password").value;
            var repsword = document.getElementById("newpassword").value;
        if(password == ''||repsword==''){
        alert('密码不能为空');
            return false;
        }
        if(password != repsword) {
        alert("两次密码不同，请重新输入");
            return false;
        }
       return true;
        }
    </script>
  </head>
  <body>
    <div class="modal-shiftfix">
      <!-- Navigation -->
      <div class="navbar navbar-fixed-top scroll-hide">
        <div class="container-fluid top-bar">

        </div>
       
      </div>
      <div class="container-fluid main-content" style="min-height:560px">
          <div class="col-md-10  col-xs-12 col-sm-10 col-sm-offset-1 col-md-offset-1 col-xs-offset-1"   >
              <h2 style="color: #03c2f9; margin-bottom: 0px;padding-bottom: 0px;"><p class="bg-white" style="margin-bottom: 10px;margin-top: 10px" >个人信息</p></h2>
              <h4><p class="bg-info" style="margin-top:0px ;padding:10px" ><a href="/LOL" style="color: red">首页&nbsp;</a>/&nbsp;注册</p></h4>

              <div class="col-md-3  col-xs-12 col-sm-6 col-sm-offset-3 col-md-offset-4 col-xs-offset-2" >
                  <form  method="post"  class="form-horizontal" action="{:U(register)}"  enctype="multipart/form-data" onsubmit="return check();" >

                      <input class="form-control" placeholder="手机号(必填)" type="text" id="telephone" name="telephone" required pattern="[0-9]{11}">
                      <br>
                      <input class="form-control" placeholder="用户名(必填)" type="text" id="aliasname" name="aliasname" required >
                      <br>
                      <input class="form-control" placeholder="密码(必填)" type="password" id="password" name="password" required>
                      <br>
                      <input class="form-control" placeholder="确认密码(必填)" type="password" id="newpassword" name="newpassword" required>
                      <br>
                      <input class="form-control" placeholder="邮箱(必填)" type="email" id="email" name="email" required>
                      <br>
                      
                      <div class="fileupload fileupload-new" data-provides="fileupload"><input type="hidden" value=""
                                                                                               >
                          <div class="fileupload-new img-thumbnail"
                               >
                              
                          </div>
                          <div class="fileupload-preview fileupload-exists img-thumbnail"
                               style="width: 150px; max-height: 200px;"></div>
                          
                    
                    <span class="btn btn-default btn-file">
                        <span class="fileupload-new"></span>
                        <span class="fileupload-exists"></span><input type="file" name="file">
                        </span>

                      </div>
                      <input class="form-control" placeholder="验证码" type="text" name="verifycode" required><img src="{:U(verify)}" id="verifyimg" style="cursor: pointer;border: 0px" title="点击刷新验证码" onclick="fleshVerify()">
                    <script>
                       function fleshVerify(){
                        document.getElementById("verifyimg").src="{:U(verify)}";
                       }
                    </script>
                    <br>
                      <input class="btn btn-block btn-info "  type="submit" value="注 册">

                  </form>
              </div>
          </div>
           
          
     
      </div>

    </div>
  </body>

</html>